<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
</head>
<body>
  <div id="app">
      姓名:<input type="text" v-model="name"/>
      <br/>
      密码:<input type="text" v-model.number="password"/>
      <br/>
      <input type="radio" v-model="likeCity" value="北京"/>北京
      <input type="radio" v-model="likeCity" value="武汉"/>武汉
      <input type="radio" v-model="likeCity" value="上海"/>上海
      <input type="radio" v-model="likeCity" value="深圳"/>深圳
      <br/>
      <select v-model="ans">
          <option value="A">A</option>
          <option value="B">B</option>
          <option value="C">C</option>
          <option value="D">D</option>
      </select>
      <br/>
      <input type="checkbox" v-model="isAgree"/>:同意提交
      <h3>用户{{isAgree?'同意':'不同意'}}</h3>

  </div>
<script>
      const vm = new Vue({
        el:"#app",
        data(){
          return{
            name:"",
            password:null,
            ans:"A",
            likeCity:"",
            isAgree: false,
          }
        },
        methods:{

        }
      })
</script>
</body>
</html>